package com.jidong.test_springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@Data
@EqualsAndHashCode  //这个注解自动帮我们重写相同判断逻辑，Set自动去重是依据这里判断
@ToString
@TableName(value="t_router")
public class Router {
	@TableId
	private int id;
	@TableField(value="type")
	private String type;
	@TableField(value="title")
	private String title;
	@TableField(value="`key`")
	private String key;
	@TableField(value="component")
	private String component;
	@TableField(value="`name`")
	private String name;
	@TableField(value="redirect")
	private String redirect;
	@TableField(value="icon")
	private String icon;
	@TableField(value="parent_id")
	private int parentId;
	@TableField(value="is_parent")
	private String isParent;
	
}
